#!/bin/bash
for psfilename in *.ps
do
 pdffilename=${psfilename%.ps}'.pdf'
 ps2pdf $psfilename $pdffilename
 pdfcrop $pdffilename $pdffilename
done
for epsfilename in *.eps
do
 pdffilename=${epsfilename%.eps}'.pdf'
 ps2pdf $epsfilename $pdffilename
 pdfcrop $pdffilename $pdffilename
done
